<template>
    <div class="takesGoods">
      <div class="takesGoodsfor" v-for="(takesGoods,take) in takesGoods" :key="take">
       <div class="takesGoodsHand">
        <div class="takesGoodsDepart">
          <p class="takesGoodsDeparttitle">始发地</p>
          <p class="takesGoodsDepartsite">{{takesGoods.depart}}</p>
          <p class="takesGoodsDepartdetail">{{takesGoods.departregion}}</p>
        </div>
        <div class="carriage">
            <p class="carriageify">空运</p>
            <img src="../assets/images/go.png">
            <p class="stockpile">需冷藏</p>
        </div>
        <div class="takesGoodsDestination">
            <p  class="Destinationtitle">目的地</p>
            <p class="Destinationsite">{{takesGoods.destination}}</p>
            <p class="Destinationdetail">{{takesGoods.destinationregion}}</p>
        </div>
        </div>
        <div class="indetail">
            <span class="infotitle">详</span>
            <span class="info">{{takesGoods.indetail}}</span>
        </div>
        <div class="message">
            <span class="messagetitle">重量</span><span class="messageconten">{{takesGoods.weight}}</span>
            <span class="messagetitle">运费</span><span class="messageconten">{{takesGoods.freight}}</span>
        </div>
        <div class="takesodd">
            <span class="oddnum">物流单号：{{takesGoods.odd}}</span>
            <span class="copy">复制</span>
        </div>
        <div class="takesBnt">
            <van-button color="#FF6200" class="relation">联系商家</van-button>
            <van-button color="#00C657" class="sub">确认取件</van-button>
        </div>
      </div>
  </div>
</template>

<script>
export default {
    name:"takesGoodsmodule",
    props:{
        takesGoods:{
            type: Array,
            default: []
        }
    },
}
</script>

<style scoped>
.takesGoods{
    margin-top: 11px;
}
.takesGoodsfor{
    margin-top: 11px;
}
.takesGoodsHand{
    display: flex;
}
.carriage img{
    width: 76px;
    height: 5px;
    vertical-align: middle;
    margin-left: 37px;
}
.takesGoodsDeparttitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-top: 15px;
    margin-left:67px;
}
.takesGoodsDepartsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-left: 56px;
    margin-top: 12px;
}
.takesGoodsDepartdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left:67px;
}
.carriageify{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(0,198,87,1);
    margin-left: 67px;
    margin-top: 5px;
}
.stockpile{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(255,98,0,1);
    margin-left: 60px;
}
.Destinationtitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
    margin-top: 15px;
}
.Destinationsite{
    font-size:18px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(51,51,51,1);
    margin-top: 12px;
    margin-left: 30px;
}
.Destinationdetail{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1);
    margin-left: 39px;
}
.indetail{
    text-align: center;
    margin-top: 18px;
}
.infotitle{
    background:rgba(0,198,87,1);
    border-radius:50%;
    color: #fff;
    padding: 3px;

}
.info{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(51,51,51,1);
}
.message{
    display: flex;
    text-align: center;
    margin-top: 25px;
}
.messagetitle{
    font-size:10px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(169,174,192,1);
    word-wrap: break-word;
    flex: 0.5;
}
.messageconten{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:bold;
    color:rgba(255,98,0,1);
    word-wrap: break-word;
    word-break: normal;
    flex: 0.5;
}
.takesodd{
    margin-top: 20px;
    margin-left: 35px;
}
.oddnum{
    font-size:12px;
    font-family:PingFang SC;
    font-weight:500;
    color:rgba(169,174,192,1)
}
.copy{
    border:1px solid rgba(0,198,87,1);
    border-radius:3px;
    color: rgba(0,198,87,1);
    font-size: 10px;
}
.takesBnt{
    text-align: center;
}
.sub{
    width:125px;
    height:33px;
    margin: 16px 15px;
}
.relation{
    width:125px;
    height:33px;
    margin: 16px 15px;
}
</style>